<?php

    $name = $_POST['name'];
    $tel = $_POST['tel'];
    $email = $_POST['email'];
    $msg = $_POST['msg'];


    $db_server = "127.0.0.1";
    $db_user = "pc";
    $db_password = "666888";
    $db_name = "pc";
    $link = @mysql_connect($db_server,$db_user,$db_password,true);
    if(!$link) {
        die("Connect Server Failed: " );
    }
    if(!mysql_select_db($db_name,$link)) {
        die("Select Database Failed: " );
    }
    mysql_query("SET NAMES UTF8mb4");


    $sql = "INSERT INTO `pc`.`user_info` (`id`,`name`,`tel`,`email`, `msg`) VALUES (NULL,'".$name."','".$tel."','".$email."','".$msg."')";
	mysql_query($sql);